<fieldset>
        <legend>Der Bedarf verteilt sich über folgende Standorte:</legend>
        <br />
        <table class="table" >
            <?php
            while (current($locations)) { 
                echo '<tr><th>';
                $percentage = current($locations) / count($participants) * 100;
                
                echo key($locations) . '</th><td>' . current($locations) . '/' . count($participants) . '</td>';
                echo '<td><div class="progress" style="width:300px; margin:0;"><div class="bar" style="width:' . $percentage . '%;">&nbsp;' . round($percentage, 1) . '%</div></div></td>';
                echo '</tr>';
                next($locations);
            }
            ?>
        </table>
    </fieldset>